File
Creates a new instance of File based on the given path.
Since
8.0.0
Parameters
path
The file path.
mime Type
MIME type of the file content. If not passed, Chromium will automatically determine the type based on the file extension. If no MIME type is associated with the extension, the content type defaults to application/octet-stream
.
name
The file name.
Creates a new instance of File based on the given bytes array.
Since
8.0.0
Parameters
bytes
The file content.
mime Type
MIME type of the file content.
name
The file name.
Creates an empty File.
Since
8.0.0